﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ServiceModel;

namespace MaxLeaf.KH.Contract
{
    [ServiceContract]
    public interface IExecute 
    {
        /// <summary>
        /// 根据提供的命令、输入数据， 得到输出结果
        /// </summary>
        /// <param name="cmd">需要执行的命令</param>
        /// <param name="inputData">输入集合 包含Key:data, param...</param>
        /// <returns>返回集合 包含Key:data, error...</returns>
        [OperationContract]
        IDictionary<string, object> Execute(string cmd, IDictionary<string, object> inputData);

    }
}
